package lab02.test06;

import java.util.Scanner;

public class Test06 {
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        Triangle t=new Triangle();
        t.setA(sc.nextDouble());
        t.setB(sc.nextDouble());
        t.setC(sc.nextDouble());
        t.compose();
        t.getArea();
        t.getperimeter();
        t.alter();

        System.out.println("请输入梯形的上底下底以及高：");
        Ladder l=new Ladder();
        l.topline=sc.nextFloat();
        l.baseline=sc.nextFloat();
        l.height=sc.nextFloat();
        l.getArea();

        System.out.println("请输入圆的半径：");
        Circle c=new Circle();
        c.radii=sc.nextFloat();
        c.area();
    }
}
